/*
 ============================================================================
 Name        : Freq_Analyzer.h
 Author      : Stefan Nagel
 Version     : 0.0.1
 Copyright   : 2013 Stefan Nagel
 	 	 	 	This file is part of zeitmessanlage.
				zeitmessanlage is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
				zeitmessanlage is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
				You should have received a copy of the GNU General Public License along with zeitmessanlage. If not, see http://www.gnu.org/licenses/.
  Description : This is the header to measure a frequency on an GNUBLIN port or use the PC simulation
 ============================================================================
 */

#ifndef FREQ_ANALYZER_H_
#define FREQ_ANALYZER_H_

#define NUMBER_OF_EDGES			20
#define SCALE_FACTOR			(1.05)
#define POLLING_TIMEOUT			(1000*60)
#define NUMBER_OF_STREAMS		1
#define DEFAULT_FREQUENCY		(958.0)
#define DEFAULT_FREQUENCY_ERROR	(100.0)
#define DEFAULT_FREQUENCY_GPIO	14


extern struct timespec tsStartTime;

extern int Frequency_Analyzer(void);


#endif /* FREQ_ANALYZER_H_ */
